<?php

Yii::import('zii.widgets.CPortlet');

class RecentArticles extends CPortlet
{
	public $title='最新文章';
	public $maxArticles=10;

	protected function renderContent()
	{
		$this->render('recentArticles',
			array('recentArticles' =>Article::model()->findArticles($this->maxArticles))
		);
	}
	
}